package com.hc.dfs.handle;

import android.content.Context;

/** 
 * @author 王洪胜  E-mail:  
 * @version 创建时间：2013-3-5 上午10:09:40
 * 
 * 类说明：
 *
 */
public class DetailPageFactory {
	
	Context context;
	int page, docType;
	
	public DetailPageFactory(Context context, int page, int docType){
		//上下文
		this.context = context;
		//页码（待批、跟踪、待办）
		this.page = page;
		//文档类型（合同、呈批单、发文稿纸）
		this.docType = docType;
	}
	
	public DetailPage createDetailPage(){
		DetailPage detailPage = null;
		switch (docType) {
		case 4:
			detailPage = new DetailChengPiDan(context, page, docType);
			break;
		case 5:
			detailPage = new DetailFaWenGao(context, page, docType);
			break;
		case 6:
			detailPage = new DetailHeTong(context, page, docType);
			break;
		default:
			break;
		}
		return detailPage;
	}
	
}
